package Branch

import scala.io.StdIn

object IfTest {
  def main(args: Array[String]): Unit = {
    println("请输入年份")
    val year = StdIn.readInt()
    if ((year % 4 == 0 && year % 100 !=  0) || year % 400 == 0) {
      println(year + "是闰年")
    } else {
      println("不是闰年")
    }
  }
}
